package com.liruo.enumconverter.annotation;

import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Author:liruo
 * @Date:2023-02-23-12:42:14
 * @Desc
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(EnumConverterRegistrar.class)
@AutoConfigurationPackage
public @interface EnableSourceEnumConverter {
    /**
     * 2选1
     * @return
     */
    @AliasFor("basePackages")
    String[] value() default {};

    @AliasFor("value")
    String[] basePackages() default {};
}
